package es.esp.ut01;

import java.util.Locale;
import java.util.Scanner;

public class HolaMundo {

	public static void main(String[] args) {

		Locale loc = new Locale("En_en");
		String drink = "beers";
		String thing = "bottles";

		for (int number = 99; number > -1;) {

			System.out.printf(loc, "%d %s of %s on the wall\n",
					number, thing, drink);
			System.out.printf(loc, "%d %s of %s\n", number, thing,
					drink);

			if (number > 0) {
				System.out.print("Take one down, pass it around, \n");
				--number;
				if (number == 1){
					drink = "beer";
					thing = "bottle";
				}
				System.out.printf(loc, "%d %s of %s on the wall\n",
						number, thing,
						drink);
			} else {
				System.out.printf("Go to the store, buy some more, \n");
				number = 99;
				drink = "beers";
				thing = "bottles";
				System.out.printf(loc, "%d %s of %s on the wall\n",
						number, thing,drink);
				System.exit(0);
			}
			System.out.println();
		}
		

	}
}
